
<?php
$config = Yii::app()->params['backend'];
$yes_or_no = array(
    0 => Yii::t('common', 'no'),
    1 => Yii::t('common', 'yes'),
);
?>
<div>
    <?php echo CHtml::beginForm(array('system'), 'post', array('class' => 'dot_form')); ?>
    <fieldset>
        <legend><?php echo Yii::t('common', 'please_fill_table_contents'); ?></legend>
        <dl>
            <dt>每页数据：</dt>
            <dd>
                <?php
                $per_page_size_items = array(
                    '10' => "【10】",
                    '16' => "【15】",
                    '20' => "【20】",
                    '25' => "【25】",
                    '30' => "【30】",
                    '35' => "【35】",
                    '40' => "【40】",
                    '45' => "【45】",
                    '50' => "【50】",
                    '100' => "【100】",
                    '200' => "【200】",
                );
                echo CHtml::dropDownList('per_page_size', $config['per_page_size'], $per_page_size_items);
              ?>
            </dd>

            <dt>文章评论审核</dt>
            <dd><?php echo CHtml::dropDownList('postCommentNeedApproval', $config['postCommentNeedApproval'], $yes_or_no); ?></dd>
            
            <dt>产品评论审核</dt>
            <dd><?php echo CHtml::dropDownList('productCommentNeedApproval', $config['productCommentNeedApproval'], $yes_or_no); ?></dd>

            <dt></dt>
            <dd><?php echo CHtml::submitButton(Yii::t('common', 'update'), array('name' => 'submit_setting', 'class' => 'btn')); ?></dd>
        </dl>
    </fieldset>
    <?php echo CHtml::endForm(); ?>
</div>